package com.bbzn.device.client.dao.process;

import com.bbzn.device.client.dataobject.Flow;
import java.util.Date;
import java.util.List;
import com.bbzn.device.client.dto.process.FlowDTO;import org.apache.ibatis.annotations.Param;

public interface FlowMapper {
    /**
     * delete by primary key
     *
     * @param flowId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long flowId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Flow record);

    int insertOrUpdate(Flow record);

    int insertOrUpdateSelective(Flow record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Flow record);

    /**
     * select by primary key
     *
     * @param flowId primary key
     * @return object by primary key
     */
    Flow selectByPrimaryKey(Long flowId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Flow record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Flow record);

    List<Flow> findByAll(Flow flow);

    Flow findOneByOrderNo(@Param("orderNo") String orderNo);

    int updateBatch(List<Flow> list);

    int updateBatchSelective(List<Flow> list);

    int batchInsert(@Param("list") List<Flow> list);

    List<Flow> selectPageBySelective(FlowDTO record);

    int selectCountBySelective(FlowDTO record);
}